from flask_wtf import Form
from wtforms import StringField, SubmitField, SelectField, IntegerField
from wtforms.validators import DataRequired


class AddNode(Form):
    node_id = StringField('部门内码', validators=[DataRequired()])
    dept_name = StringField('部门名称', validators=[DataRequired()])
    sys_id = StringField('部门系统编码', validators=[DataRequired()])
    parent_id = StringField('上级内码')
    submit = SubmitField("提交新节点")
